from datetime import date
dt=date.today()
print(dt)
di=date(2020,5,1)
y=di.year;m=di.month;d=di.day
print(y,m,d)
wd=di.weekday()
iwd=di.isoweekday()
print(wd,iwd)
distr=di.isoformat()
dtuple=di.isocalendar()
print(distr,dtuple)
dct=di.ctime()
dstr=di.strftime('%Y年%m月%d日')
print(dct,dstr)
nd=di.replace(year=2000,month=12)
print(nd)
